package cn.ges.encryption;

import org.apache.commons.codec.binary.Base64;

/**
 * Base 64 加密解密
 *
 * @author gespent@163.com
 * @date 2018/11/29
 */
public class Base64Coded {

    public static String decode(byte[] bytes) {
        return new String(Base64.decodeBase64(bytes));
    }

    public static String encode(byte[] bytes) {
        return new String(Base64.encodeBase64(bytes));
    }


}
